package com.example.designpatterns.behavioral.visitor;

/**
 * 具体元素：电子产品
 *
 * @author scott
 */
public class ElectronicsProduct implements Product {

    @Override
    public void accept(Visitor visitor) {
        visitor.visitElectronicsProduct(this);
    }

    public void applyDiscount() {
        System.out.println("电子产品打折优惠");
    }

}
